package cn.yhjz.generator.entity;

import lombok.Data;

/**
 * 模型对象 yct_model
 *
 * @author maguoping
 * @date 2022-02-24
 */
@Data
public class SysGenModelRender extends SysGenModel {

    private String objectName;

    public String getObjectName() {

//        return "hasdfsadf";
        String s = this.getClassName();
        //把className的首字母小写
        if (Character.isLowerCase(s.charAt(0))) {
            return s;
        } else {
            return (new StringBuilder()).append(Character.toLowerCase(s.charAt(0))).append(s.substring(1)).toString();
        }
    }
}
